package com.homedo.odin.solution.model.request.mng.column;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * <p> 栏目资源（视频等） </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Data
public class ColumnResourceRequestBean {

    @ApiModelProperty("资源ID，新增数据不需要填")
    private Integer resourceId;

    @ApiModelProperty("栏目id")
    @NotNull(message = "栏目id不能为空")
    @Min(value = 0, message = "栏目id非法")
    private Long columnId;

    @ApiModelProperty("资源标题")
    @NotEmpty(message = "资源标题不能为空")
    private String resourceTitle;

    @ApiModelProperty("资源地址")
    @NotEmpty(message = "资源标题不能为空")
    private String resourceUrl;

}
